﻿
#pragma once
#include "Engine/common.h"
#include "DNF定义.h"

//C++用String做ID非常失败，来不及改了，只好出此下策
void InitStringIdMap();
void UninitStringIdMap();
WCHAR* GetCtrlId(int Index);
WCHAR* GetResId(int Index);
void RetainAppImageRes();
BOOL IsSameCtrlId(WCHAR* TextId,int CtrlId);

enum CtrlIdDef
{
	CID_选择职业_底图,
	CID_选择职业_标头,
	CID_选择职业_奶妈,
	CID_选择职业_剑帝,

	//设置页占内容最多，不加[设置]前缀了
	CID_底图,
	CID_标头,
	CID_返回按钮,
	CID_页内跳转_装备,
	CID_页内跳转_条件,
	CID_页内跳转_技能,
	CID_页内跳转_打造,
	CID_页内跳转_特性,
	CID_设置区,
	CID_信息区,

	CID_装备面板标题,
	CID_装备面板,
	CID_装备图标,	//装备区装备总数
	CID_装备图标遮罩=CID_装备图标+装备区装备总数,//装备区装备总数
	CID_装备面板结束=CID_装备图标遮罩+装备区装备总数,	//占位，不使用

	CID_条件面板标题,
	CID_条件面板,
	CID_条件_场景,
	CID_条件_怪物,
	CID_条件_药剂图标,	//DNF药剂总数
	CID_条件_药剂=CID_条件_药剂图标+DNF药剂总数,	//DNF药剂总数
	CID_条件_出血触发频率=CID_条件_药剂+DNF药剂总数,
	CID_条件_中毒触发频率,
	CID_条件_灼伤触发频率,
	CID_条件_感电触发频率,
	CID_条件_出血层数,
	CID_条件_中毒层数,
	CID_条件_感电层数,
	CID_条件_控制型异常开关,
	CID_条件_控制型异常触发频率,
	CID_条件_HP范围,
	CID_条件_MP范围,
	CID_条件_队员数量,
	CID_条件_怪物数量,
	CID_条件_千发暴击类型,
	CID_条件_装备暴击类型,
	CID_条件_机械怪物,
	CID_条件_恶魔怪物,
	CID_条件_精灵怪物,
	CID_条件_天使怪物,
	CID_条件_龙族怪物,
	CID_条件_人型怪物,
	CID_条件_野兽怪物,
	CID_条件_植物怪物,
	CID_条件_不死怪物,
	CID_条件_昆虫怪物,
	CID_条件_普通敌人,
	CID_条件_稀有敌人,
	CID_条件_精英敌人,
	CID_条件_领主敌人,
	CID_条件_正面攻击,
	CID_条件_背面攻击,
	CID_条件_破招攻击,
	CID_条件_非破招攻击,
	CID_条件_自身出血状态,
	CID_条件_自身中毒状态,
	CID_条件_自身灼伤状态,
	CID_条件_自身感电状态,
	CID_条件_自身冰冻状态,
	CID_条件_自身减速状态,
	CID_条件_自身眩晕状态,
	CID_条件_自身诅咒状态,
	CID_条件_自身失明状态,
	CID_条件_自身石化状态,
	CID_条件_自身睡眠状态,
	CID_条件_自身混乱状态,
	CID_条件_自身束缚状态,
	CID_条件_怪物出血状态,
	CID_条件_怪物中毒状态,
	CID_条件_怪物灼伤状态,
	CID_条件_怪物感电状态,
	CID_条件_怪物冰冻状态,
	CID_条件_怪物减速状态,
	CID_条件_怪物眩晕状态,
	CID_条件_怪物诅咒状态,
	CID_条件_怪物失明状态,
	CID_条件_怪物石化状态,
	CID_条件_怪物睡眠状态,
	CID_条件_怪物混乱状态,
	CID_条件_怪物束缚状态,
	CID_条件面板结束,	//占位，不使用

	CID_技能面板标题,
	CID_技能面板,
	CID_技能_护石符文标题,
	CID_技能_技能标题,
	CID_技能_职业设置标题,
	CID_技能_技能设置描述,
	CID_技能_技能图标,	//20
	CID_技能_技能等级=CID_技能_技能图标+20,	//20
	CID_技能_技能TP等级=CID_技能_技能等级+20,	//20
	CID_技能_技能次数=CID_技能_技能TP等级+20,	//20
	CID_技能_技能宠物次数=CID_技能_技能次数+20,	//20
	CID_技能_技能手搓次数=CID_技能_技能宠物次数+20,	//20
	CID_技能_技能手搓方向键=CID_技能_技能手搓次数+20,	//20
	CID_技能_技能在快捷栏=CID_技能_技能手搓方向键+20,	//20
	CID_技能_被动技能图标=CID_技能_技能在快捷栏+20,	//10
	CID_技能_被动技能等级=CID_技能_被动技能图标+10,	//10
	CID_技能_Buff技能图标=CID_技能_被动技能等级+10,
	CID_技能_Buff技能数值,
	CID_技能_护石1,
	CID_技能_护石2,
	CID_技能_护石3,
	CID_技能_符文颜色1_1,
	CID_技能_符文颜色1_2,
	CID_技能_符文颜色1_3,
	CID_技能_符文颜色2_1,
	CID_技能_符文颜色2_2,
	CID_技能_符文颜色2_3,
	CID_技能_符文颜色3_1,
	CID_技能_符文颜色3_2,
	CID_技能_符文颜色3_3,
	CID_技能_符文1_1,
	CID_技能_符文1_2,
	CID_技能_符文1_3,
	CID_技能_符文2_1,
	CID_技能_符文2_2,
	CID_技能_符文2_3,
	CID_技能_符文3_1,
	CID_技能_符文3_2,
	CID_技能_符文3_3,
	CID_技能_特殊设置1,
	CID_技能_特殊设置2,
	CID_技能面板结束,	//占位，不使用


	CID_打造面板标题,
	CID_打造面板,
	CID_打造_标题_装备设置,
	CID_打造_标题_装扮设置,
	CID_打造_标题_辟邪玉设置,
	CID_打造_标题_杂项设置,
	CID_打造_标题_补正设置,
	CID_打造_一键打造列表,
	CID_打造_一键强化按钮,
	CID_打造_一键增幅按钮,
	CID_打造_使用提示标签,
	CID_打造_控件开始,
	CID_打造_当前部位图标=CID_打造_控件开始,
	CID_打造_当前部位标签,
	CID_打造_强化类型,
	CID_打造_强化等级,
	CID_打造_锻造等级,	//武器专属
	CID_打造_附魔,
	CID_打造_徽章1,
	CID_打造_徽章2,		//防具首饰专属
	CID_打造_融合升级开关,	//首饰特殊专属
	CID_打造_武器星团等级,	//武器专属
	CID_打造_武器梦境等级,	//武器专属
	CID_打造_武器记忆等级,	//武器专属
	CID_打造_武器装扮,
	CID_打造_武器装扮徽章1,
	CID_打造_武器装扮徽章2,
	CID_打造_皮肤,
	CID_打造_皮肤徽章1,
	CID_打造_皮肤徽章2,
	CID_打造_光环,
	CID_打造_光环徽章1,
	CID_打造_光环徽章2,
	CID_打造_装扮品质,	//8件
	CID_打造_装扮属性=CID_打造_装扮品质+装扮部位总数,	//8件
	CID_打造_辟邪玉词条1=CID_打造_装扮属性+装扮部位总数,
	CID_打造_辟邪玉词条2,
	CID_打造_辟邪玉词条3,
	CID_打造_辟邪玉词条4,
	CID_打造_辟邪玉词条1属性标签,
	CID_打造_辟邪玉词条2属性标签,
	CID_打造_辟邪玉词条3属性标签,
	CID_打造_辟邪玉词条4属性标签,
	CID_打造_辟邪玉词条1属性滑块,
	CID_打造_辟邪玉词条2属性滑块,
	CID_打造_辟邪玉词条3属性滑块,
	CID_打造_辟邪玉词条4属性滑块,
	CID_打造_星辰百变数量,
	CID_打造_跨越之忆星团,
	CID_打造_副武器状态,		//剑帝专属
	CID_打造_副武器强化,	//剑帝专属
	CID_打造_红色宠物装备,
	CID_打造_蓝色宠物装备,
	CID_打造_绿色宠物装备,
	CID_打造_快捷栏装备,
	CID_打造_勋章品质,
	CID_打造_勋章强化,
	CID_打造_守护珠1品质,
	CID_打造_守护珠2品质,
	CID_打造_守护珠3品质,
	CID_打造_守护珠4品质,
	CID_打造_冒险团等级,
	CID_打造_公会属性,
	CID_打造_训练官属性1,
	CID_打造_训练官属性2,
	CID_打造_婚房属性,
	CID_打造_婚戒属性,
	CID_打造_晶体契约,
	CID_打造_名称装饰卡,
	CID_打造_收集箱类型,
	CID_打造_收集箱稀有个数,
	CID_打造_收集箱神器个数,
	CID_打造_辅助力智加成,
	CID_打造_辅助三攻加成,
	CID_打造_辅助技攻加成,
	CID_打造_四维补正,
	CID_打造_三攻补正,
	CID_打造_技攻补正,
	CID_打造_攻击强化补正,
	CID_打造_攻击强化增幅补正,
	CID_打造_火强补正,
	CID_打造_冰强补正,
	CID_打造_光强补正,
	CID_打造_暗强补正,
	CID_打造_火抗补正,
	CID_打造_冰抗补正,
	CID_打造_光抗补正,
	CID_打造_暗抗补正,
	CID_打造_异常状态补正,	//13种
	CID_打造_攻速补正=CID_打造_异常状态补正+13,
	CID_打造_技能范围补正,
	CID_打造_MP消耗量补正,
	CID_打造_控件结束,
	CID_打造描述标签开始=CID_打造_控件结束,	//大部分标签和控件对应，但也有些是用不到的，数量为 CID_打造_控件结束-CID_打造_控件开始
	CID_打造描述标签结束=CID_打造描述标签开始+(CID_打造_控件结束-CID_打造_控件开始),	//占位，不使用
	CID_打造面板结束,	//占位，不使用

	CID_特性面板标题,	
	CID_特性面板,
	CID_特性技能详情滚动视图,
	CID_特性技能详情,
	CID_特性技能图标,	//47个
	CID_特性技能等级=CID_特性技能图标+47,	//47个
	CID_特性技能升级按钮=CID_特性技能等级+47,
	CID_特性技能降级按钮,
	CID_特性技能图标光圈,
	CID_特性技能重置按钮,
	CID_特性面板结束,	//占位，不使用
	
	CID_角色详情面板,
	CID_角色面板职业标签,
	CID_角色面板伤害类型标签,
	CID_角色详情_Q版角色,
	CID_角色面板装备,
	CID_角色面板上衣=CID_角色面板装备,
	CID_角色面板下装,
	CID_角色面板护肩,
	CID_角色面板腰带,
	CID_角色面板鞋子,
	CID_角色面板手镯,
	CID_角色面板项链,
	CID_角色面板戒指,
	CID_角色面板左槽,
	CID_角色面板右槽,
	CID_角色面板耳环,
	CID_角色面板武器,
	CID_角色面板称号,
	CID_角色面板宠物,
	CID_角色面板上衣贴膜,
	CID_角色面板下装贴膜,
	CID_角色面板护肩贴膜,
	CID_角色面板腰带贴膜,
	CID_角色面板鞋子贴膜,
	CID_角色面板手镯贴膜,
	CID_角色面板项链贴膜,
	CID_角色面板戒指贴膜,
	CID_角色面板左槽贴膜,
	CID_角色面板右槽贴膜,
	CID_角色面板耳环贴膜,
	CID_角色面板武器贴膜,
	CID_角色面板强化,
	CID_角色面板上衣强化=CID_角色面板强化,
	CID_角色面板下装强化,
	CID_角色面板护肩强化,
	CID_角色面板腰带强化,
	CID_角色面板鞋子强化,
	CID_角色面板手镯强化,
	CID_角色面板项链强化,
	CID_角色面板戒指强化,
	CID_角色面板左槽强化,
	CID_角色面板右槽强化,
	CID_角色面板耳环强化,
	CID_角色面板武器强化,
	CID_角色面板武器锻造,
	CID_角色面板徽章,
	CID_角色面板上衣徽章=CID_角色面板徽章,
	CID_角色面板下装徽章,
	CID_角色面板护肩徽章,
	CID_角色面板腰带徽章,
	CID_角色面板鞋子徽章,
	CID_角色面板手镯徽章,
	CID_角色面板项链徽章,
	CID_角色面板戒指徽章,
	CID_角色面板左槽徽章,
	CID_角色面板右槽徽章,
	CID_角色面板附魔,
	CID_角色面板上衣附魔=CID_角色面板附魔,
	CID_角色面板下装附魔,
	CID_角色面板护肩附魔,
	CID_角色面板腰带附魔,
	CID_角色面板鞋子附魔,
	CID_角色面板手镯附魔,
	CID_角色面板项链附魔,
	CID_角色面板戒指附魔,
	CID_角色面板左槽附魔,
	CID_角色面板右槽附魔,
	CID_角色面板耳环附魔,
	CID_角色面板武器附魔,
	CID_角色面板称号附魔,
	CID_角色面板宠物附魔,
	CID_属性标签,
	CID_属性标签_物理攻击=CID_属性标签,
	CID_属性标签_魔法攻击,
	CID_属性标签_独立攻击,
	CID_属性标签_力量,
	CID_属性标签_智力,
	CID_属性标签_属性强化,
	CID_属性标签_攻击强化,
	CID_属性标签_攻击强化增幅,
	CID_属性标签_技能伤害,
	CID_属性标签_直伤占比,
	CID_属性标签_冷却减少,
	CID_属性标签_技能范围,
	CID_属性标签_MP消耗量,
	CID_属性标签_攻击速度,
	CID_属性标签_施放速度,
	CID_属性标签_移动速度,
	CID_属性标签_出血伤害占比,
	CID_属性标签_中毒伤害占比,
	CID_属性标签_灼伤伤害占比,
	CID_属性标签_感电伤害占比,
	CID_属性标签_出血伤害增加,
	CID_属性标签_中毒伤害增加,
	CID_属性标签_灼伤伤害增加,
	CID_属性标签_感电伤害增加,
	CID_属性标签_属性抗性,
	CID_属性标签_异常抗性,
	CID_属性标签_出血抗性=CID_属性标签_异常抗性,
	CID_属性标签_中毒抗性,
	CID_属性标签_灼伤抗性,
	CID_属性标签_感电抗性,
	CID_属性标签_冰冻抗性,
	CID_属性标签_减速抗性,
	CID_属性标签_眩晕抗性,
	CID_属性标签_诅咒抗性,
	CID_属性标签_失明抗性,
	CID_属性标签_石化抗性,
	CID_属性标签_睡眠抗性,
	CID_属性标签_混乱抗性,
	CID_属性标签_束缚抗性,
	CID_伤害标签,
	CID_提升率标签,
	CID_设为基准按钮,
	CID_提升率切换按钮,
	CID_伤害详情按钮,
	CID_角色详情面板结束,	//占位，不使用

	CID_冷却详情面板,
	CID_冷却_信息列表视图,
	CID_冷却_技能图标,		//20个
	CID_冷却_技能原始时间=CID_冷却_技能图标+20,	//20个
	CID_冷却_技能当前时间=CID_冷却_技能原始时间+20,	//20个
	CID_冷却_技能缩减率=CID_冷却_技能当前时间+20,		//20个
	CID_冷却_技能无色数=CID_冷却_技能缩减率+20,		//20个
	CID_冷却面板结束=CID_冷却_技能无色数+20,	//占位，不使用

	CID_装备详情面板,
	CID_装备详情_图标,
	CID_装备详情_名称,
	CID_装备详情_部位,
	CID_装备详情_强化力智加成,
	CID_装备详情_强化三攻加成,
	CID_装备详情_锻造独立加成,
	CID_装备详情_条件状态,
	CID_装备详情_装备描述底,	//ScrollView
	CID_装备详情_装备描述标签,
	CID_装备详情_自定义选择底,	//Image
	CID_装备详情_自定义列表,
	CID_装备详情_武器贴膜底,	//TabView
	CID_装备详情_武器贴膜列表1,
	CID_装备详情_武器贴膜列表2,
	CID_装备详情_武器贴膜列表3,
	CID_装备详情_传说贴膜底,	//TabView
	CID_装备详情_传说贴膜列表1,
	CID_装备详情_传说贴膜列表2,
	CID_装备详情_传说贴膜列表3,

	CID_装备详情面板结束,	//占位，不使用


	CID_伤害详情_底图,
	CID_伤害详情_标头,
	CID_伤害详情_返回按钮,
	CID_伤害详情_角色详情面板,
	CID_伤害详情_场景图标,
	CID_伤害详情_系统奶标签,
	CID_伤害详情_怪物图标,
	CID_伤害详情_怪物标签,
	CID_伤害详情_信息列表视图,
	CID_伤害详情_技能图标,	//20个
	CID_伤害详情_技能等级=CID_伤害详情_技能图标+20,	//20个
	CID_伤害详情_技能次数=CID_伤害详情_技能等级+20,	//20个
	CID_伤害详情_技能冷却=CID_伤害详情_技能次数+20,	//20个
	CID_伤害详情_技能平均伤害=CID_伤害详情_技能冷却+20,	//20个
	CID_伤害详情_技能总伤害=CID_伤害详情_技能平均伤害+20,	//20个
	CID_伤害详情_技能占比=CID_伤害详情_技能总伤害+20,	//20个
	CID_伤害详情_被动技能图标=CID_伤害详情_技能占比+20,	//10个
	CID_伤害详情_被动技能等级=CID_伤害详情_被动技能图标+10,	//10个
	CID_伤害详情页面结束=CID_伤害详情_被动技能等级+10,	//占位，不使用

	
	CID_Test0,
	CID_Test1,
	CID_Test2,
	CID_Test3,
};


enum ResIdDef
{
	//UI框架专用资源不计入
	//有什么加什么，无顺序

	RID_选择职业背景,
	RID_奶妈大头像,
	RID_奶妈大头像Hover,
	RID_剑帝大头像,
	RID_剑帝大头像Hover,

	RID_主背景_奶妈,
	RID_主背景_剑帝,

	RID_装备面板标题,
	RID_装备面板背景,	//未使用

	RID_条件面板标题,
	RID_条件面板背景,	//未使用
	
	RID_技能面板标题,
	RID_技能面板背景,	//未使用

	RID_打造面板标题,
	RID_打造面板背景,	//未使用

	RID_特性面板标题,
	RID_特性面板背景,
	RID_特性面板背景_规律=RID_特性面板背景,
	RID_特性面板背景_猛攻,
	RID_特性面板背景_保护,
	RID_特性面板背景_具现,
	RID_特性技能规律图标,		//38个
	RID_特性技能猛攻图标=RID_特性技能规律图标+38,		//28个
	RID_特性技能保护图标=RID_特性技能猛攻图标+28,		//30个
	RID_特性技能具现图标=RID_特性技能保护图标+30,		//32个
	RID_特性技能等级=RID_特性技能具现图标+32,	//11个
	RID_特性技能等级满=RID_特性技能等级+11,	//11个
	RID_特性技能图标光圈Normal=RID_特性技能等级满+11,
	RID_特性技能图标光圈Hover,	//废弃
	RID_特性技能升级Normal,
	RID_特性技能升级Hover,
	RID_特性技能升级Push,
	RID_特性技能降级Normal,
	RID_特性技能降级Hover,
	RID_特性技能降级Push,

	RID_角色详情背景,
	RID_角色详情背景_短,
	RID_Q奶妈,
	RID_Q剑帝,

	RID_冷却详情背景,

	RID_场景图标,	//DNF场景总数
	RID_怪物图标=RID_场景图标+DNF场景总数,	//DNF怪物总数
	RID_药剂图标=RID_怪物图标+DNF怪物总数,	//DNF药剂总数
	RID_强化数字=RID_药剂图标+DNF药剂总数,	//21
	RID_增幅数字=RID_强化数字+21,				//21
	RID_锻造数字=RID_增幅数字+21,				//9
	RID_徽章槽位=RID_锻造数字+9,
	RID_红色徽章槽位=RID_徽章槽位,			//3
	RID_黄色徽章槽位=RID_红色徽章槽位+3,		//3
	RID_绿色徽章槽位=RID_黄色徽章槽位+3,		//3
	RID_蓝色徽章槽位=RID_绿色徽章槽位+3,		//3
	RID_白金徽章槽位=RID_蓝色徽章槽位+3,		//3

	RID_伤害详情背景_修炼道场=RID_白金徽章槽位+2,
	RID_伤害详情背景_巴卡尔攻坚战,
	RID_伤害详情背景_雾神攻坚战,

	RID_打造标题_装备设置,
	RID_打造标题_装扮设置,
	RID_打造标题_辟邪玉设置,
	RID_打造标题_杂项设置,
	RID_打造标题_补正设置,

	RID_太初图标,
	RID_太初_馥郁的欢愉=RID_太初图标,
	RID_太初_冰封的怨恨,
	RID_太初_逆流的记忆,
	RID_太初_爆发的噩梦,
	RID_太初_守护魂,
	RID_太初_佩鲁斯帝国的荣光,
	RID_太初_灵魂追踪器,
	RID_太初_红兔,
	RID_太初_回忆的低语,
	RID_太初_雪封的愤怒,
	RID_太初_遗忘魔石,
	RID_太初_孵化的恶意之种,
	RID_太初_世界偶像戒指,
	RID_太初_辨明异徒的食指,

	RID_装备图标,		//装备总数
	RID_装备图标灰色=RID_装备图标+装备总数,	//装备总数
	RID_装备图标遮罩=RID_装备图标灰色+装备总数,

	RID_技能图标_奶妈,	//18个
	RID_被动技能图标_奶妈=RID_技能图标_奶妈+18,	//7个
	RID_BUFF技能图标_奶妈=RID_被动技能图标_奶妈+7,
	RID_技能图标_剑帝,	//18个
	RID_被动技能图标_剑帝=RID_技能图标_剑帝+18,	//5个
	RID_BUFF技能图标_剑帝=RID_被动技能图标_剑帝+5,

	RID_符文图标_奶妈,	//16*5个
	RID_符文图标_剑帝=RID_符文图标_奶妈+80,	//16*5个
	RID_符文红色=RID_符文图标_剑帝+80,
	RID_符文蓝色,
	RID_符文紫色,
	RID_符文绿色,
	RID_符文黄色,

	RID_列表框背景,

	RID_技能区标题_护石符文,
	RID_技能区标题_技能,
	RID_技能区标题_职业设置,
	RID_技能设置描述,

	RID_附魔标记,

	RID_TestImage,
};